package com.atguigu.spzx.common.util;

import com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.sys.SysUser;

public class AuthUtils {
    private static final ThreadLocal<SysUser> CACHE = new ThreadLocal<>();


    public static void set(SysUser sysUser){
        CACHE.set(sysUser);
    }

    public static SysUser get(){
        return CACHE.get();
    }

    public static void remove(){
        CACHE.remove();
    }
}